Imports DevExpress.XtraEditors.Registrator
Imports System.ComponentModel
Imports DevExpress.XtraEditors.Popup


Public Class MetaRepositoryItemSearchEdit
    Inherits SearchLookUpEdit

    Public Property QueryNameXX As String

    'The static constructor which calls the registration method
    Shared Sub New()
        MetaRepositoryItemSearchLookUpEdit.RegisterMetaRepositoryItemSearchLookUpEdit()
    End Sub

    'Initialize the new instance

    Public Sub New()
    End Sub

    'Return the unique name
    Public Overrides ReadOnly Property EditorTypeName() As String
        Get
            Return MetaRepositoryItemSearchLookUpEdit.MySearchEditName
        End Get
    End Property

    'Override the Properties property
    'Simply type-cast the object to the custom repository item type
    <DesignerSerializationVisibility(DesignerSerializationVisibility.Content)> _
    Public Shadows ReadOnly Property Properties() As MetaRepositoryItemSearchLookUpEdit
        Get
            Return TryCast(MyBase.Properties, MetaRepositoryItemSearchLookUpEdit)
        End Get
    End Property

    Protected Overrides Function CreatePopupForm() As PopupBaseForm
        Return New MetaPopUpSearchLookupEdit(Me)
    End Function


End Class
